package com.woniu.dao;

import com.woniu.pojo.AdminInformation;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface AdminInformationMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(AdminInformation record);

    int insertSelective(AdminInformation record);

    AdminInformation selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AdminInformation record);

    int updateByPrimaryKey(AdminInformation record);

    @Select("select adminInformation.*,roles.role_name roleName from pl_admin_information adminInformation left join pl_roles roles on adminInformation.role_id = roles.role_id")
    List<AdminInformation> selectByPage(Integer currentPage, Integer pageSize);
}